//--------------------------------------------------------------------
//     Author:Howe
//     Date: 2021-04-13 21:41:46 
//     Description:对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
//--------------------------------------------------------------------
using System;
using System.Threading.Tasks;
using Kylin.Wiki.Core;
using Kylin.Wiki.Services;
using Kylin.Wiki.Model.Entity;
using Kylin.Wiki.Model.Api;
using System.Collections.Generic;
using Kylin.Wiki.Model.Dto;

namespace Kylin.Wiki.IService
{
    /// <summary>
    /// IRoleServices
    /// </summary>	
    public interface IRoleService : IServices<Role>
    {
        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="roleDTO"></param>
        /// <returns></returns>
        ApiPageResult<List<Role>> GetListByPage(RoleDTO roleDTO);

        /// <summary>
        /// 创建角色
        /// </summary>
        /// <param name="role"></param>
        /// <returns></returns>
        ApiResult<bool> Create(RoleUpdateDTO role);

        /// <summary>
        /// 更新角色
        /// </summary>
        /// <param name="role"></param>
        /// <returns></returns>
        ApiResult<bool> Update(RoleUpdateDTO role);

        /// <summary>
        /// 删除角色
        /// </summary>
        /// <param name="role"></param>
        /// <returns></returns>
        ApiResult<bool> Delete(Role role);
    }

}
